{% extends 'base.html' %}

{% load i18n %}
{% load custom_formatting %}
{% load custom_translation %}

{% block extra_html_head_stuff %}
<link type="text/css" href="/static/css/tooltips.css" rel="stylesheet" />

{% if run %}
{% include 'run_stats_head.html' %}
{% endif %}

{% endblock extra_html_head_stuff %}


{% block title %}{% trans "KataGo Distributed Training" %}{% endblock %}


{% block content %}

<h1 class="title">{% trans "KataGo Distributed Training" %}</h1>

{% for announcement in announcements %}
<h2 class="is-size-2"> {{ announcement.title }} </h2>
<div class="content">
{{ announcement.rendered_contents_safe|safe }}
</div>
{% endfor %}

{% if run %}
<h2 class="is-size-2 mt-4"> {% blocktrans with run_name=run.name %} Stats for {{run_name}} {% endblocktrans %} </h2>
{% blocktrans with run_name=run.name run_created_at=run.created_at|isotimestr %}
This run is named {{run_name}} and began on {{ run_created_at }}.
{% endblocktrans %}
{% include 'run_stats.html' %}
{% endif %}


{% if show_older_runs %}
<h2 class="is-size-2 mt-4"> {% trans "Older Runs" %} </h2>
{% url 'runs' as runs_url %}
{% blocktrans %}
For older or prior runs that KataGo has done on this site, see <a href="{{ runs_url }}">here</a>.
{% endblocktrans %}
{% endif %}

{% endblock content %}
